<?php

App::uses('AppModel', 'Model');
App::uses('NodeRole', 'Node.Model');
App::uses('NodeController', 'Node.Controller');
/**
 * NodeType Model
 * 
 * PHP versions 5
 * CAKEPHP versions 2.x
 * 
 * Green CMS - Content Management System and Framework Powerfull by Cakephp
 * Copyright 2012, GREEN GLOBAL CO., LTD (toancauxanh.vn)
 * 
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @author        Technology Lab No.I <tech1@toancauxanh.vn>
 * @link          
 * @package       Green.Model
 * @since         Green v 1.0
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 *
 * @property Role $Role
 */
class Question extends AppModel {
    var $useTable = 'question'; 
    public $actsAs = array(        
         'CreateAlias' => array(
            'label' => 'question',
            'alias' => 'alias'
         )
    );
    public $hasMany = array(
        'MoveQuestion' => array(
            'className' => 'Node.MoveQuestion',
            'foreignKey' => 'question_id',
            'dependent' => true
        )
    );   
}
?>